package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.User;

import java.util.Map;
import java.util.Set;

import java.util.List;

/**
 * 用户登录
 *
 * @create 2020/11/16 0016 19:27
 */
public interface UserService {
    
    User findByUsername(String username);

    void add(User user, Integer[] roleIds);

    PageResult pageQuery(QueryPageBean queryPageBean);

    void edit(User user, Integer[] roleIds);

    User findById(Integer id);

    List<Integer> findRoleIdsByUserId(Integer id);

    void delete(Integer id);

    Set<Map<String, Object>> findMenu(String userName);
}
